package com.zk.spring5.aop_annotation;

import org.springframework.stereotype.Component;

/**
 * @author ZK
 * @Description
 * @time 2021/5/4 21:54
 * @note 被增强的类
 */
@Component
public class User {
    private Book book;
    public void add() {
        System.out.println("add....");
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    @Override
    public String toString() {
        return "User{" +
                "book=" + book +
                '}';
    }
}
